import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testBean {
    @Test
    public void testbean1(){
        ApplicationContext applicationContext = new
                ClassPathXmlApplicationContext("Spring-context.xml");
        //只要加载成功，Spring-context.xml文件里的类就会被实例化
    }
}
